package com.qiangesoft.blog.core.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qiangesoft.blog.common.mvc.PageQuery;
import com.qiangesoft.blog.common.mvc.PageResultVO;
import com.qiangesoft.blog.common.result.ResponseResult;
import com.qiangesoft.blog.core.entity.BlogTag;
import com.qiangesoft.blog.core.pojo.vo.BlogTagVO;

import java.util.List;

/**
 * <p>
 * 标签 服务类
 * </p>
 *
 * @author qiange
 * @since 2023-06-05
 */
public interface IBlogTagService extends IService<BlogTag> {

    /**
     * 标签列表
     *
     * @param name
     * @return
     */
    PageResultVO<BlogTag> listTags(PageQuery pageQuery, String name);

    ResponseResult insertTag(BlogTag tags);

    ResponseResult updateTag(BlogTag tags);

    ResponseResult deleteById(Long id);

    ResponseResult deleteBatch(List<Long> ids);

    ResponseResult getTagsById(Long id);

    ResponseResult top(Long id);


    //    -----web端方法开始-----
    List<BlogTagVO> webList();
}
